Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

302
Visualizações
(Retool) Make a ".txt" file to GCS but I got the error "Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded."

On Retool, I'm trying to make a ".txt" file with some words to Google Cloud Storage(GCS) but I got this error.

enter image description here

makeTXTFile: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.

This is the query settings on Retool to make a ".txt" file to GCS:

enter image description here

Action type and Content-Type:

enter image description here

Upload file name:

enter image description here

Upload data:

enter image description here

Lemon
Banana
Pineapple

And I want the ".txt" file with a fruit name in each row as below:

enter image description here

Are there any ways to make the ".txt" file from Retool to GCS without the error?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You need to encode the string in Base64 with "btoa()" method and the string needs to have "\n" for line break:

enter image description here

{{ btoa("Lemon\nBanana\nPineapple") }}

Then, you can make the ".txt" file with a fruit name in each row:

enter image description here

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda